@model ShivamEMR.Model.Domain.PharmacyDomain.DrugClass

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>DrugClass</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">Notes</div>
    <div class="display-field">@Model.Notes</div>

    <div class="display-label">DrugGenerics</div>
    <div class="display-field">@(Model.DrugGenerics == null ? "None" : Model.DrugGenerics.Count.ToString())</div>

    <div class="display-label">DrugBrands</div>
    <div class="display-field">@(Model.DrugBrands == null ? "None" : Model.DrugBrands.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


